<HTML><HEAD><TITLE>/home/steder/Projects/Tutorials/python/BobChat-v0.3/BobClient.py</TITLE></HEAD>
                  <BODY BGCOLOR=#FFFFFF>
                  <!--header-->
                  <!--script--><PRE><FONT COLOR=#3333CC><B>from</B></FONT> Numeric <FONT COLOR=#3333CC><B>import</B></FONT> zeros
rows = 10
columns = 10

<FONT COLOR=#1111CC># Note dimensions is a tuple</FONT>
dimensions = (rows,columns)
<FONT COLOR=#1111CC># A is an array with length(dimensions) dimensions, so it is a 2d array.</FONT>
<FONT COLOR=#1111CC># A 3d array would have, (row, column, depth) as a dimensions tuple.</FONT>
A = zeros( dimensions )

<FONT COLOR=#1111CC># You could also write:</FONT>
A = zeros( (5,3) )

<FONT COLOR=#1111CC># And if you aren't a fan of 0's</FONT>
B = ones( dimensions )
</PRE>
                  <!--footer-->
                  </BODY>
